#ifndef PROCEDURE_H
#define PROCEDURE_H

#include <QDebug>

class Procedure
{
public:
    Procedure(QString name, QString id, int status);
    Procedure(const Procedure &other);
    Procedure &operator=(const Procedure &other);

    bool operator==(const Procedure &other) const;
    void f_changeStatus(int t_stat);

public:
    QString m_procedure_name;
    QString m_procedure_ID;

    int m_status = 2;

    enum e_status {Doing, Done, Unready};
};

    inline uint qHash(const Procedure &key, uint seed)
    {
        return qHash(key.m_procedure_name, seed) ^ qHash(key.m_status, seed+1);
    }
    QDebug operator<<(QDebug dbg, const Procedure &data);
#endif // PROCEDURE_H
